package com.ruoyi.orders.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单取消对象 t_order_cancel
 * 
 * @author ruoyi
 * @date 2025-08-19
 */
public class TOrderCancel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 取消记录ID */
    private Long cancelId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 取消原因 */
    @Excel(name = "取消原因")
    private String cancelReason;

    /** 乘客是否有责 */
    @Excel(name = "乘客是否有责")
    private Integer passengerResponsible;

    /** 取消费（元） */
    @Excel(name = "取消费", readConverterExp = "元=")
    private BigDecimal cancelFee;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    public void setCancelId(Long cancelId) 
    {
        this.cancelId = cancelId;
    }

    public Long getCancelId() 
    {
        return cancelId;
    }

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setCancelReason(String cancelReason) 
    {
        this.cancelReason = cancelReason;
    }

    public String getCancelReason() 
    {
        return cancelReason;
    }

    public void setPassengerResponsible(Integer passengerResponsible) 
    {
        this.passengerResponsible = passengerResponsible;
    }

    public Integer getPassengerResponsible() 
    {
        return passengerResponsible;
    }

    public void setCancelFee(BigDecimal cancelFee) 
    {
        this.cancelFee = cancelFee;
    }

    public BigDecimal getCancelFee() 
    {
        return cancelFee;
    }

    public void setOperateTime(Date operateTime) 
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime() 
    {
        return operateTime;
    }

    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cancelId", getCancelId())
            .append("orderId", getOrderId())
            .append("cancelReason", getCancelReason())
            .append("passengerResponsible", getPassengerResponsible())
            .append("cancelFee", getCancelFee())
            .append("operateTime", getOperateTime())
            .append("operator", getOperator())
            .toString();
    }
}
